package com.ruoyi.system.service.impl;

import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONObject;
import com.ruoyi.system.domain.vo.GjjSeachLog;
import com.ruoyi.system.domain.vo.GjjSeachLogVo;
import com.ruoyi.system.mapper.GjjSeachLogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VisitService {

    @Autowired
    private GjjSeachLogMapper gjjSeachLogMapper;
    public Object list() {
        List<GjjSeachLogVo> list = gjjSeachLogMapper.list();
        String json = JSON.toJSONString(list);
        return json;
    }

    public List<GjjSeachLog> queryList(String name, String startDate, String endDate) {
        return gjjSeachLogMapper.queryList(name, startDate, endDate);
    }

}
